import http from './httpRequest.js'

// 账号密码登录
export function login(data) {
    console.log(data)
    return http({
		url: `/login/mobile/password`,
		method: 'post',
        data
	})
}

// 手机验证码登录
export function captchaLogin(data) {
    return http({
		url: `/login/mobile/captcha`,
		method: 'post',
        data
	})
}

// 邮箱验证码登录
export function captchaLoginEmail(data) {
    return http({
		url: `/login/email/mobile`,
		method: 'post',
        data
	})
}